package com.dingdang.controller.admin.admin;

import com.dingdang.model.AdminLeftNav;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * 后台页面跳转控制类
 */
@Controller
@RequestMapping("/admin")
public class LoginViewController {

    //  管理后台登录
    @RequestMapping("login")
    public String login() {
        return "admin/login";
    }

   //  静态页面打开方式
    @RequestMapping("/staticPage")
    public String staticPage() {
        return "redirect:static/staticHtml.html";
    }

  //  指定默认打开首页
    @RequestMapping("/")
    public String index() {
        return "index";
    }
}
